# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-tftp
_pkgname=TFTP
pkgver=1.0b3
pkgrel=16
pkgdesc='TFTP Client class for perl.'
arch=('any')
url='https://metacpan.org/pod/TFTP'
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
source=("http://search.cpan.org/CPAN/authors/id/G/GS/GSM/$_pkgname-$pkgver.tar.gz")
sha512sums=('45b117c55bd6f5954debcb35fd0250e6c002a119e3a44e68e529911db797882c35202b31c94e2aeea8e5400625eaf06f31a39122c30dffcc9e8a12919a4db32a')

package() {
  cd "$_pkgname-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor
  make
  make DESTDIR="$pkgdir" install
}

